package restful_apis.zzz_search;

import restful_apis.dependency.BeanExample;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

/**
 * Created by julianzliu on 5/3/2017.
 */

@Path("test")
//@Produces(MediaType.APPLICATION_JSON)
public class TestRestAPI {

    /*
    http://howtodoinjava.com/jersey/jersey-2-hello-world-application-tutorial/
    https://jersey.java.net/documentation/latest/user-guide.html
    https://jersey.java.net/documentation/latest/getting-started.html
     */


    private BeanExample beanExample;

    //@Inject
    public TestRestAPI(){
        this.beanExample = new BeanExample();
    }

    @GET
    @Path("msg")
    public String getMsg()
    {
        return this.beanExample.query("Hello Bean!");
    }

}
